Optimal. Leaf size=59 \[ \frac {2 \sqrt {1+x}}{\sqrt {1-x}}+\frac {(1+x)^{3/2}}{3 (1-x)^{3/2}}-\tanh ^{-1}\left (\sqrt {1-x} \sqrt {1+x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {98, 96, 94, 212}
\begin {gather*} \frac {(x+1)^{3/2}}{3 (1-x)^{3/2}}+\frac {2 \sqrt {x+1}}{\sqrt {1-x}}-\tanh ^{-1}\left (\sqrt {1-x} \sqrt {x+1}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 94
Rule 96
Rule 98
Rule 212
Rubi steps
\begin {align*} \int \frac {\sqrt {1+x}}{(1-x)^{5/2} x} \, dx &=\frac {(1+x)^{3/2}}{3 (1-x)^{3/2}}+\int \frac {\sqrt {1+x}}{(1-x)^{3/2} x} \, dx\\ &=\frac {2 \sqrt {1+x}}{\sqrt {1-x}}+\frac {(1+x)^{3/2}}{3 (1-x)^{3/2}}+\int \frac {1}{\sqrt {1-x} x \sqrt {1+x}} \, dx\\ &=\frac {2 \sqrt {1+x}}{\sqrt {1-x}}+\frac {(1+x)^{3/2}}{3 (1-x)^{3/2}}-\text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {1-x} \sqrt {1+x}\right )\\ &=\frac {2 \sqrt {1+x}}{\sqrt {1-x}}+\frac {(1+x)^{3/2}}{3 (1-x)^{3/2}}-\tanh ^{-1}\left (\sqrt {1-x} \sqrt {1+x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 46, normalized size = 0.78 \begin {gather*} \frac {(7-5 x) \sqrt {1+x}}{3 (1-x)^{3/2}}-2 \tanh ^{-1}\left (\frac {\sqrt {1+x}}{\sqrt {1-x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(92\) vs.
\(2(45)=90\).
time = 0.10, size = 93, normalized size = 1.58
method | result | size |
risch | \(\frac {\left (5 x^{2}-2 x -7\right ) \sqrt {\left (1+x \right ) \left (1-x \right )}}{3 \left (-1+x \right ) \sqrt {-\left (1+x \right ) \left (-1+x \right )}\, \sqrt {1-x}\, \sqrt {1+x}}-\frac {\arctanh \left (\frac {1}{\sqrt {-x^{2}+1}}\right ) \sqrt {\left (1+x \right ) \left (1-x \right )}}{\sqrt {1-x}\, \sqrt {1+x}}\) | \(87\) |
default | \(-\frac {\left (3 \arctanh \left (\frac {1}{\sqrt {-x^{2}+1}}\right ) x^{2}-6 \arctanh \left (\frac {1}{\sqrt {-x^{2}+1}}\right ) x +5 x \sqrt {-x^{2}+1}+3 \arctanh \left (\frac {1}{\sqrt {-x^{2}+1}}\right )-7 \sqrt {-x^{2}+1}\right ) \sqrt {1-x}\, \sqrt {1+x}}{3 \left (-1+x \right )^{2} \sqrt {-x^{2}+1}}\) | \(93\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 70, normalized size = 1.19 \begin {gather*} \frac {5 \, x}{3 \, \sqrt {-x^{2} + 1}} + \frac {1}{\sqrt {-x^{2} + 1}} + \frac {4 \, x}{3 \, {\left (-x^{2} + 1\right )}^{\frac {3}{2}}} + \frac {4}{3 \, {\left (-x^{2} + 1\right )}^{\frac {3}{2}}} - \log \left (\frac {2 \, \sqrt {-x^{2} + 1}}{{\left | x \right |}} + \frac {2}{{\left | x \right |}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.65, size = 71, normalized size = 1.20 \begin {gather*} \frac {7 \, x^{2} - {\left (5 \, x - 7\right )} \sqrt {x + 1} \sqrt {-x + 1} + 3 \, {\left (x^{2} - 2 \, x + 1\right )} \log \left (\frac {\sqrt {x + 1} \sqrt {-x + 1} - 1}{x}\right ) - 14 \, x + 7}{3 \, {\left (x^{2} - 2 \, x + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x + 1}}{x \left (1 - x\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\sqrt {x+1}}{x\,{\left (1-x\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________